#include "Startscene.h"
#include "ui_startscene.h"
#include "choosemode.h"
#include "help_introduction.h"
//主窗口，内设“开始游戏”和“帮助”窗口
Startscene::Startscene(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Startscene)
{
    ui->setupUi(this);
    //建立两个窗口（类对象）
    ChooseMode* choosescene=new ChooseMode();
    Help_introduction* helpscene = new Help_introduction();
    connect(ui->StartBtn,&QPushButton::clicked,[=](){
        this->hide();
        choosescene->show();
    });
    connect(ui->HelpBtn,&QPushButton::clicked,[=](){
        this->hide();
        helpscene->show();
    });
    connect(helpscene->btn_3,&QPushButton::clicked,[=](){
        helpscene->hide();
        this->show();
    });

}

Startscene::~Startscene()
{
    delete ui;
}
